fix(logging): harden sandbox log delivery under load - #3106
Conversation
Review findings
|
Is this a real situation? A newer supervisor connecting to an older gateway? I would imagine only the reverse being true. During an upgrade the gateway would be bounced and the sandboxes shortly after with an updated supervisor, no? |
bb77402 to
f6e9686
Compare
2c3f99a to
f572721
Compare
Sandbox log delivery now recovers from large bursts and oversized records instead of becoming stuck retrying an undeliverable batch. Deliverable records continue reaching the gateway in order, and a single record that is too large no longer blocks the rest of the stream. When load or connectivity makes loss unavoidable, gateway warnings and metrics now report the missing line count. That accounting remains accurate across stream reconnects and resets when the sandbox is deleted. Refs #1055 Signed-off-by: Kris Hicks <khicks@nvidia.com>
f572721 to
278778d
Compare
|
Closing this in favor of a different split redone by gpt-6-astra. |
Summary
Sandbox log delivery now recovers from large bursts and oversized records instead of becoming stuck retrying an undeliverable batch. Deliverable records continue reaching the gateway in order, and a single record that is too large no longer blocks the rest of the stream.
When load or connectivity makes loss unavoidable, gateway warnings and metrics now report the missing line count. That accounting remains accurate across stream reconnects and resets when the sandbox is deleted.
Related Issue
Refs #1055
Changes
Testing
mise run pre-commitpassesChecklist